﻿using Common.Contract.Authentication.Record;
using SMECustomerWebsite.Core.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SMECustomerWebsite.Models.ViewModels.DaoManager
{
    public class DaoInfoViewModel : GenerateViewMode, IViewModel
    {
        public UserRecord CurrentUser { get; set; }
        public int Id { get; set; }
        [Required(ErrorMessage = "Full name is required.")]
        public string FullName { get; set; }

        [Required(ErrorMessage = "Email is required.")]
        public string Email { get; set; }
        public string PositionName { get; set; }
        public string StaffId { get; set; }
        [Required(ErrorMessage = "Cif is required.")]
        public string Cif { get; set; }
        public string LegalId { get; set; }
        public string Phone { get; set; }
        [Required, FileExtensions(Extensions = "jpg|png",
             ErrorMessage = "Specify a jpg|png file. (Comma-separated values)")]
        public HttpPostedFileBase File { get; set; }
        [Required(ErrorMessage = "Branch is required.")]
        public string Branch { get; set; }
        public string RejectReason { get; set; }
        public List<SelectListItem> ListBranch { get; set; }
    }
}